package diet.XMLUtils;

import diet.method.ControllerMethod;
import java.io.File;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author HT
 */
public class PDFTest {

    public static void main(String[] args) {

//        String xslPath = "web/WEB-INF/DishesFO.xsl";
//        String xmlPath = "web/WEB-INF/Dishes.xml";
//        String output = "D:\\Dishes.fo";
                String xslPath = "web/WEB-INF/FoodsFO.xsl";
        String xmlPath = "web/WEB-INF/Foods.xml";
        String output = "D:\\Foods.fo";
        XMLUltis.createFOFile(xslPath, xmlPath, output);

        File xmlFile = new File("web/WEB-INF/Dishes.fo");
        File pdfFile = new File("web/WEB-INF/Dishes.pdf");
//        File xmlFile = new File("D:\\Dishes.fo");
//        File pdfFile = new File("D:\\Dishes.pdf");
        PDFGenerating.CreatePDF(xmlFile, pdfFile,"");
      //  ControllerMethod cm = new ControllerMethod();
      //  cm.AutoGenerateMenu("demo99@yahoo.com");
    }


}
